home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18101 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: mail2news.demon.co.uk!willen.demon.co.uk
  2. From: Adrian Parker <adrian@willen.demon.co.uk>
  3. Newsgroups: comp.unix.questions,comp.lang.c,comp.lang.c++
  4. Subject: Re: Calling COBOL from C/C++
  5. Date: Thu, 18 Apr 96 17:20:36 GMT
  6. Organization: Quondam Ltd
  7. Message-ID: <829848036snz@willen.demon.co.uk>
  8. References: <317545E2.1DA0@interramp.com> <829814695snz@willen.demon.co.uk>
  9. Reply-To: adrian@willen.demon.co.uk
  10. X-NNTP-Posting-Host: willen.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.30
  12. X-Mail2News-Path: willen.demon.co.uk
  13.  
  14. In article <829814695snz@willen.demon.co.uk>
  15.            adrian@willen.demon.co.uk "Adrian Parker" writes:
  16.  
  17. > In article <317545E2.1DA0@interramp.com>
  18. >            zimmerdc@interramp.com "Daniel C. Zimmerman" writes:
  19. > > We are trying to call a Microfocus COBOL program from a C/C++ program.  
  20. > > We would like to receive extensive error messages (codes) from the COBOL 
  21. > > program.  One way to do this is to use the "system" call, but it does 
  22. > > not give us the capability of getting anything more than "success" or 
  23. > > "failure."  What are some other ways to do this?
  24. > Try asking in comp.lang.cobol they will be able to tell you for sure.
  25. > You don't need to use "system", you can call your C routine directly
  26. > with a CALL statement. 
  27.  
  28. Takes foot out of mouth..
  29.  
  30. The reverse call operates in the same way.. i.e. by reference, but 
  31. you need to build the C into the cobol runtime..   
  32.  
  33. From what I remember, this is explained in the user guide.
  34.  
  35. adrian
  36. -- 
  37. :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
  38. :: Adrian Parker  adrian@willen.demon.co.uk  Quondam Ltd ::
  39. :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
  40.